package com.easy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easy.common.api.CommonResult;
import com.easy.domain.Note;
import com.easy.domain.NoteVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 风亦未止
 * @date 2021/10/6 15:17
 */
@Mapper
public interface NoteMapper extends BaseMapper<Note> {
    /**
     * 保存note 返回id
     *
     * @param note
     * @return
     */
    Long saveNote(Note note);

    /**
     * 获取所有
     * @return
     */
    List<NoteVO> getAllList(int type);
}